Mollie\WooCommerce\Payment\MollieOrderService C

Total Complexity 109
Dependencies 9
Dependents 5
Total lines 693
Lines of code 449
Logical lines of code 298
Comment lines 204
Methods 29
Properties 8

Methods 29

Method Rating Maintainability Complexity Lines of code
onWebhookAction()
C
31 25 100
processChargebacks()
B
36 17 77
checkPaymentForUnpaidOrder()
A
40 14 55
updateOrderStatus()
A
54 8 21
orderNeedsPayment()
S
51 7 26
processRefunds()
S
50 4 27
findRefundIdsByLinks()
S
60 3 12
notifyProcessedRefunds()
S
60 2 13
acquireOrderLock()
S
64 2 10
findRefundIds()
S
71 2 6
calculateRefundByLine()
S
67 2 8
isPartialRefund()
S
69 2 6
processUpdateStateRefund()
S
72 2 5
paymentTestModeNote()
S
71 2 5
getPaymentMethodTitle()
S
69 2 7
getProcessedRefundIds()
S
64 2 9
renderNote()
S
63 1 11
__construct()
S
67 1 8
setGateway()
S
81 1 3
getPaymentIdFromRequest()
S
78 1 3
releaseOrderLock()
S
81 1 3
handlePaidOrderWebhook()
S
68 1 6
isOrderPaidAndProcessed()
S
79 1 3
isOrderPaidByOtherGateway()
S
79 1 3
hasLineRefund()
S
80 1 3
findRefundIdsByLine()
S
74 1 5
setBillingAddressAfterPayment()
S
69 1 5
updateStateRefund()
S
69 1 6
isOrderButtonPayment()
S
79 1 3